<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>模版继承详解</title>
    <style>
        .nav ul {
            overflow: hidden;
        }

        .nav ul li {
            float: left;
            margin: 0 20px;
        }
    </style>
</head>

<body>
    <nav class="nav">
        <ul>
            <li>首页</li>
            <li>课程详情</li>
            <li>视频教程</li>
            <li>关于我们</li>
        </ul>
    </nav>
    
    {% block body_block %}
        <p style="background: red;">这是父模板中的代码</p>
    {% endblock %}
    <footer>
        这是底部
    </footer>

    {% block footer %}
    
    {% endblock %}
</body>

</html>